package fr.umlv.m2.jee.portailEtudiant.web.action.td;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import fr.umlv.m2.jee.portailEtudiant.service.DisplayTd;
import fr.umlv.m2.jee.portailEtudiant.service.IDisplayTdService;
import fr.umlv.m2.jee.portailEtudiant.service.Impl.DefaultDisplayTdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 07/02/11
 * Time: 12:32
 * To change this template use File | Settings | File Templates.
 */
public class AllTds extends ActionSupport {

    @Autowired
    private IDisplayTdService tdsService;

    private List< DisplayTd > tdList;

    @Override
	public String execute() throws Exception {
        System.out.println("ds execute 1");
		tdList = tdsService.getAllDisplayTds();
        System.out.println("ds execute 2");
		return SUCCESS;

	}

    public List< DisplayTd > getTdList() {
		return tdList;
	}


    public void setTdsService(IDisplayTdService tdsService) {
        this.tdsService = tdsService;
    }
}
